package com.onlinelearn.controllers;

import com.onlinelearn.content.service.CoursePublishPreService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 课程发布 前端控制器
 * </p>
 *
 * @author
 */
@Slf4j
@RestController
public class CoursePublishPreController {

    @Autowired
    private CoursePublishPreService  coursePublishPreService;
    @ResponseBody
    @PostMapping("/courseaudit/commit/{courseId}")
    public void commitAudit(@PathVariable("courseId") Long courseId){
        Long companyId = 1232141425L;
        coursePublishPreService.commitAudit(companyId,courseId);
    }
}
